package com.hmall.cart.controller.inner;

import com.hmall.cart.service.ICartService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RequestMapping("inner/cart")
@RestController
@RequiredArgsConstructor
public class CartInnerController {
    private  final ICartService iCartService;
    @DeleteMapping
    public void deleteCartItemByIds(@RequestParam("userId") Long userId,
                                    @RequestParam("ids") List<Long> ids){
        iCartService.removeByItemIds(userId,ids);
    }
}
